#!/usr/bin/env python
import unittest

from tests import line, document, stream, file as file_test, cui

def main(*modules):
    test_suite = unittest.TestSuite()
    test_suite.addTests(
        unittest.defaultTestLoader.loadTestsFromModule(module)
        for module in modules)
    return test_suite

TestSuite = main(line, document, stream, file_test, cui)

if __name__ == '__main__':
    unittest.TextTestRunner(verbosity=2).run(TestSuite)
